home *** CD-ROM | disk | FTP | other *** search
/ Future Workshop / Future Workshop.iso / multimed / qtw111 / mplayer / player.h < prev    next >
Text File  |  1993-09-30  |  7KB  |  185 lines

  1.  
  2. // ---------------------------------------------------------------------
  3. //
  4. // Player.h - Movie Player - QuickTime for Windows
  5. //
  6. //            Version 1.0
  7. //
  8. //            (c) 1988-1992 Apple Computer, Inc. All Rights Reserved.
  9. //
  10. // ---------------------------------------------------------------------
  11.  
  12.  
  13. // Prevent multiple inclusion
  14. // --------------------------
  15.    #ifndef PLAYER_H
  16.       #define PLAYER_H
  17.  
  18.    #define PLAYER_ROOT_NAME     "PLAY"
  19.    #define MAX_PATH_LEN           256
  20.    #define MAX_NAME_LEN            20
  21.    #define FILE_EXT_LEN             5
  22.  
  23.  
  24. // Handles
  25. // -------
  26.    DECLARE_HANDLE(HMOVIEDATA);
  27.  
  28. // typedefs
  29. // ---------
  30.    typedef struct
  31.      {char              szMoviePath[MAX_PATH_LEN];  // Path of movie file
  32.       char              szMovieName[MAX_NAME_LEN];  // File name of movie
  33.       char              szMovieExt[FILE_EXT_LEN];   // File extension
  34.       WORD              wDuplicationIndex;     // Duplication index
  35.                                                // e.g. 1 if first, 2 if 2nd
  36.       char              szFileSize[18];        // "xxxK bytes"
  37.       Movie             mMovie;                // Handle of the movie
  38.       MovieController   mcMovieController;     // Handle of movie controller
  39.       ImageDescription  idMovieInfo;           // Image info struct
  40.       SoundDescription  sdSoundInfo;           // Sound info struct
  41.       BOOL              bSoundOnly;            // Sound only movie flag
  42.       OSErr             oserrSoundInfo;        // Return from GetSoundInfo
  43.       BOOL              bDisableSizeMsgProcessing;  // Flag used in WM_SIZE
  44.                                                // message processing
  45.       BOOL              wMinMaxEtc;            // Saved value used in WM_SIZE
  46.                                                // Message processing
  47.       LFIXED            lfxSavePlayRate;       // Saved play rate
  48.       HWND              hwndGetInfo;           // HWND of info dialog box
  49.       HFONT             hfInfo;                // Font of info dialog box
  50.       TimeRecord        trSelectionStart;      // Selection start or -1 if no selection
  51.       TimeRecord        trSelectionDuration;   // Selection duration
  52.       MCActionFilter    lpFilterProc;          // -> DoAction filter proc
  53.       BOOL              bSettingControllerSize;   // DoAction filter blocking flag
  54.       RECT              rcGrowBox;             // Grow box bounds rect 
  55.       BOOL              bGrowBoxSubclassed;    // TRUE if grow box is successfully
  56.                                                // subclassed
  57.       QTOLE_OPTIONSMOVIE qtoleOptions;         // Ole movie options struct
  58.  
  59.      } MOVIEDATASTRUCT, * NPMOVIEDATA;
  60.  
  61.  
  62. // Functions
  63. // -----------------------------------------------------------------------
  64. // PlayerFrameWndProc is the frame window proc:
  65. //
  66. //
  67.    LONG __export CALLBACK PlayerFrameWndProc (HWND, UINT, WPARAM, LPARAM);
  68. // -----------------------------------------------------------------------
  69.  
  70. // PlayerMovieWndProc is the movie window proc:
  71. //
  72. //
  73.    LONG __export CALLBACK PlayerMovieWndProc (HWND, UINT, WPARAM, LPARAM);
  74. // -----------------------------------------------------------------------
  75.  
  76.  
  77. // PlayerSetActiveModeless - Set handle of active modeless dlg used in
  78. //                           main message loop
  79. //
  80. //
  81.    VOID FAR PlayerSetActiveModeless (WPARAM, HWND);
  82. // -----------------------------------------------------------------------
  83.  
  84.  
  85. // PlayerGetOptions - Opens the options dialog
  86. //
  87.    BOOL FAR PlayerGetOptions        (HWND, LPQTOLE_OPTIONSMOVIE);
  88. // --------------------------------------------------------------------
  89.  
  90.  
  91. // Function: PlayerGetDefaultOptions - Gets the default options 
  92. //
  93.    VOID FAR PlayerGetDefaultOptions( LPQTOLE_OPTIONSMOVIE lpOptions );
  94. // --------------------------------------------------------------------
  95.  
  96.  
  97. // QTOLEServerCallBack - Server callback used by qtole.dll to 
  98. //                       send commands to the server
  99.    QTOLE_ERR __export CALLBACK QTOLEServerCallBack
  100.                                    (UINT, WPARAM, LPARAM, LPQTOLE_OPTIONSMOVIE);         
  101. // --------------------------------------------------------------------
  102.  
  103.  
  104. // Query function prototypes
  105. // -----------------------------------------------------------------------
  106. // PlayerQueryInstance returns the instance handle:
  107. //
  108. // HINSTANCE hInstance;    Returned instance handle 
  109. //
  110.    HINSTANCE FAR PlayerQueryInstance (VOID);
  111. // -----------------------------------------------------------------------
  112.  
  113.  
  114. // PlayerQueryResources returns the resource-only DLL handle:
  115. //
  116. // HINSTANCE hResources;   Returned instance handle 
  117. //
  118.    HINSTANCE FAR PlayerQueryResources (VOID);
  119. // -----------------------------------------------------------------------
  120.  
  121.  
  122. // PlayerQueryFrameWindow returns the frame window handle:
  123. //
  124. // HWND hwndFrame;         Returned Frame window handle
  125. //
  126.    HWND FAR PlayerQueryFrameWindow (VOID);
  127. // -----------------------------------------------------------------------
  128.  
  129.  
  130. // PlayerQueryClientWindow returns the MDI client window handle:
  131. //
  132. // HWND hwndClient;        Returned MDI client window handle
  133. //
  134.    HWND FAR PlayerQueryClientWindow( VOID );
  135. // --------------------------------------------------------------------
  136.  
  137.  
  138. // PlayerQueryActiveMovieName returns the name of the active movie:
  139. //
  140. // LSCSTR;                 Returned -> name of active movie
  141. //
  142.    LPSTR FAR PlayerQueryActiveMovieName( LPSTR );
  143. // --------------------------------------------------------------------
  144.  
  145.  
  146. // PlayerQueryNumMovies returns the number of movie windows:
  147. //
  148. // WORD;                   Returned number of movies
  149. //
  150.    WORD FAR PlayerQueryNumMovies( VOID );
  151. // --------------------------------------------------------------------
  152.  
  153.  
  154. // PlayerQueryMDIAction returns the menu id if tiling, cascading 
  155. //                      or arranging icons:
  156. //
  157. // WORD;                   Returned menu id, else 0
  158. //
  159.    WORD FAR PlayerQueryMDIAction( VOID );
  160. // --------------------------------------------------------------------
  161.  
  162.  
  163. // PlayerNoMoreWindow sets some global handles to NULL. Called during
  164. //                    frame window WM_DESTROY message processing:
  165. //
  166.    VOID FAR PlayerNoMoreWindow( VOID );
  167. // --------------------------------------------------------------------
  168.  
  169.  
  170. // PlayerQueryOleData return -> to ole data struct
  171. //
  172.    LPQTOLE_OLEDATA FAR PlayerQueryOleData( VOID );
  173. // --------------------------------------------------------------------
  174.  
  175.  
  176. // UpdateMovieForOptions - Sets movie to reflect current options
  177. //
  178.    VOID FAR UpdateMovieForOptions (HWND, NPMOVIEDATA, BOOL);
  179. // --------------------------------------------------------------------
  180.   
  181.  
  182. // End of player.H
  183. // -------------
  184.    #endif
  185.